package com.blkbox.dp.factory;

import com.blkbox.dp.factory.entity.Apple;
import com.blkbox.dp.factory.entity.Fruit;
import com.blkbox.dp.factory.entity.Orange;

public class SimpleFactory {

	public Fruit produceFruit(String fruitName){
		
		if("Orange".equals(fruitName)){
			return new Orange();
		}else if("Apple".equals(fruitName)){
			return new Apple();
		}
		return null;
	}
}
